﻿package com.skillscoach  {
	import flash.media.Camera;
	import flash.media.Video;
	import flash.display.MovieClip;
	
	public class RecordVideo extends MovieClip {
		
		
		private var cam:Camera;
		private var video:Video;
		public var stageClip:MovieClip = this as MovieClip;
		
		public function RecordVideo() {
			// constructor code
			cam = Camera.getCamera();
			video = new Video(432,288);
			
			video.attachCamera(cam);
			video.x = 30;
			video.y = 20;
			stageClip.addChild(video);
			
			
		}

	}
	
}
